package cn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@MapperScan({"cn.*.mapper","cn.web.*.mapper","cn.dhn_app.*.mapper","cn.dhnapplets.mapper.xml.*mapper"})
@EnableScheduling
public class BootDemoApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(BootDemoApplication.class,args);
    }

    @Override//为了打包springboot项目
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}